﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="index.aspx.cs" Inherits="Jxym.wlkc2011.WebSite._default" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>课程列表</title>
    <script src="script/ext/adapter/jquery/jquery-1.5.1.min.js" type="text/javascript"></script>
    <script src="script/ext/adapter/jquery/ext-jquery-adapter.js" type="text/javascript"></script>
    <script src="script/ext/ext-all.js" type="text/javascript"></script>
    <script src="script/ext/src/locale/ext-lang-zh_CN.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(function () {
            $("#go").click(function () {
                if ($("#ps").val() == "" || $("#ps").val() == "请输入搜索关键字") { $("#ps").val("请输入搜索关键字").focus(); return false; }
                var ps = window.encodeURI($("#ps").val());
                window.location = "/?ps=" + ps;
                //form1.submit();
            });
        })
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div id="header">
        <h1>
            知识更新培训系统 v2.0</h1>
        <ul class="menu">
            <%--
            <li class="active"><a href="#">首页</a></li>
            <li><a href="#">博文</a></li>
            <li><a href="#">图册</a></li>
            <li><a href="#">关于我</a></li>
            <li><a href="#">联系我</a></li>
            --%>
        </ul>
    </div>
    <div id="teaser">
        <div class="wrap">
            <div id="image">
            </div>
            <div class="box">
                <p>
                    在输入框中输入课程名称关键字，按搜索按钮即可
                </p>
                <p>
                    <input type="text" id="ps" />
                    <input type="button" id="go" value="搜索" />
                </p>
            </div>
        </div>
    </div>
    <div class="bar">
        <div class="wrap">
            <h4>
                课程列表
            </h4>
            <ul style="margin: 0px; padding: 0px;">
                <asp:Repeater ID="rp_List" runat="server">
                    <ItemTemplate>
                        <li><em>
                            <%=index%><%index++;%></em><a href="<%#Eval("Name")%>.xhtml"><span><%#Eval("Title")%></span></a></li>
                    </ItemTemplate>
                </asp:Repeater>
            </ul>
            <webdiyer:AspNetPager ID="AspNetPager1" runat="server" CustomInfoHTML="第%CurrentPageIndex%页，共%PageCount%页，每页%PageSize%条"
                FirstPageText="首页" LastPageText="尾页" NextPageText="下一页" OnPageChanged="AspNetPager1_PageChanged"
                PageIndexBoxType="DropDownList" PageSize="15" PrevPageText="上一页" ShowCustomInfoSection="Left"
                ShowPageIndexBox="Auto" SubmitButtonText="Go" TextAfterPageIndexBox="页" TextBeforePageIndexBox="转到"
                UrlPaging="True">
            </webdiyer:AspNetPager>
            <p>
                <asp:Label ID="Label1" runat="server" Text="" Font-Bold="True" ForeColor="White"
                    Font-Size="16"></asp:Label>
            </p>
        </div>
    </div>
    <div class="wrap">
    </div>
    <div id="footer">
        <p class="right">
            Design: hsq · Sponsor:jxymnet</p>
        <p>
            © 版权所有 2011 黑龙江哈尔滨东北农业大学网络教育中心 · All Rights Reserved</p>
    </div>
    </form>
</body>
</html>
